﻿using Lt.Engine.Data;
using Lt.Engine.Library;
using RayDen.Library.Core.Components;
using RayDen.Library.Entity.Scene;

namespace Lt.Engine
{
    public class SolidMaterialFactory : Singleton<SolidMaterialFactory>
    {
        public SolidMaterial CreateMaterial(MaterialInfo materialInfo)
        {
            var bsdf = new SolidMaterial(materialInfo, materialInfo.Name.ToLowerInvariant());
            bsdf.Add(new LambertMaterial() {MaterialData = materialInfo});
            return bsdf;
        }
    }
}